package com.ph.shopping.facade.merchant.service;

import org.apache.ibatis.annotations.Param;

import com.ph.shopping.common.core.customenum.TransCodeEnum;
import com.ph.shopping.common.util.result.Result;
import com.ph.shopping.facade.merchant.entity.UserBalance;

public interface IUserBalance {
	/**
	 * 
	* @Title: userBalanceTrade
	* @Description: 用户余额交易
	* @author WQiang
	* @date  2017年3月29日 下午6:14:28
	* @param memberId
	* @param codeEnum
	* @param type
	* @param money
	* @return
	* @throws Exception
	 */
	public int userBalanceTrade(Long memberId, TransCodeEnum codeEnum, int type, Long money,Long orderId,String orderNo) throws Exception;
	
    /**
     * 查询商户或者供应商或者代理商的余额
     */
    public Result getUserBalance(UserBalance userBalance); 
    
	/**
	 * 更改商户提现状态
	 * @param orderNo
	 * @return
	 */
	public Result  updateMerchantWithdrawals(String orderNo,Integer status); 
	/**
	 * 更改商户提现状态
	 * @param orderNo
	 * @return
	 */
	public Result  updateAgentWithdrawals(String orderNo,Integer status);
	/**
	 * 更改分润表中审核的状态
	 * @param orderNo
	 * @param examineType
	 * @return
	 */
	public Result updateUserBalanceStatus(String orderNo,Integer status);
    
    
}
